package com.hkzhao.reportingsystem.mbg.model;

import java.util.ArrayList;
import java.util.List;

public class CityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCityNameIsNull() {
            addCriterion("city_name is null");
            return (Criteria) this;
        }

        public Criteria andCityNameIsNotNull() {
            addCriterion("city_name is not null");
            return (Criteria) this;
        }

        public Criteria andCityNameEqualTo(String value) {
            addCriterion("city_name =", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameNotEqualTo(String value) {
            addCriterion("city_name <>", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameGreaterThan(String value) {
            addCriterion("city_name >", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameGreaterThanOrEqualTo(String value) {
            addCriterion("city_name >=", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameLessThan(String value) {
            addCriterion("city_name <", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameLessThanOrEqualTo(String value) {
            addCriterion("city_name <=", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameLike(String value) {
            addCriterion("city_name like", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameNotLike(String value) {
            addCriterion("city_name not like", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameIn(List<String> values) {
            addCriterion("city_name in", values, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameNotIn(List<String> values) {
            addCriterion("city_name not in", values, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameBetween(String value1, String value2) {
            addCriterion("city_name between", value1, value2, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameNotBetween(String value1, String value2) {
            addCriterion("city_name not between", value1, value2, "cityName");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisIsNull() {
            addCriterion("total_diagnosis is null");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisIsNotNull() {
            addCriterion("total_diagnosis is not null");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisEqualTo(Integer value) {
            addCriterion("total_diagnosis =", value, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisNotEqualTo(Integer value) {
            addCriterion("total_diagnosis <>", value, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisGreaterThan(Integer value) {
            addCriterion("total_diagnosis >", value, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_diagnosis >=", value, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisLessThan(Integer value) {
            addCriterion("total_diagnosis <", value, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisLessThanOrEqualTo(Integer value) {
            addCriterion("total_diagnosis <=", value, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisIn(List<Integer> values) {
            addCriterion("total_diagnosis in", values, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisNotIn(List<Integer> values) {
            addCriterion("total_diagnosis not in", values, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisBetween(Integer value1, Integer value2) {
            addCriterion("total_diagnosis between", value1, value2, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalDiagnosisNotBetween(Integer value1, Integer value2) {
            addCriterion("total_diagnosis not between", value1, value2, "totalDiagnosis");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverIsNull() {
            addCriterion("total_recover is null");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverIsNotNull() {
            addCriterion("total_recover is not null");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverEqualTo(Integer value) {
            addCriterion("total_recover =", value, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverNotEqualTo(Integer value) {
            addCriterion("total_recover <>", value, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverGreaterThan(Integer value) {
            addCriterion("total_recover >", value, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_recover >=", value, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverLessThan(Integer value) {
            addCriterion("total_recover <", value, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverLessThanOrEqualTo(Integer value) {
            addCriterion("total_recover <=", value, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverIn(List<Integer> values) {
            addCriterion("total_recover in", values, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverNotIn(List<Integer> values) {
            addCriterion("total_recover not in", values, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverBetween(Integer value1, Integer value2) {
            addCriterion("total_recover between", value1, value2, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalRecoverNotBetween(Integer value1, Integer value2) {
            addCriterion("total_recover not between", value1, value2, "totalRecover");
            return (Criteria) this;
        }

        public Criteria andTotalDeathIsNull() {
            addCriterion("total_death is null");
            return (Criteria) this;
        }

        public Criteria andTotalDeathIsNotNull() {
            addCriterion("total_death is not null");
            return (Criteria) this;
        }

        public Criteria andTotalDeathEqualTo(Integer value) {
            addCriterion("total_death =", value, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andTotalDeathNotEqualTo(Integer value) {
            addCriterion("total_death <>", value, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andTotalDeathGreaterThan(Integer value) {
            addCriterion("total_death >", value, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andTotalDeathGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_death >=", value, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andTotalDeathLessThan(Integer value) {
            addCriterion("total_death <", value, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andTotalDeathLessThanOrEqualTo(Integer value) {
            addCriterion("total_death <=", value, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andTotalDeathIn(List<Integer> values) {
            addCriterion("total_death in", values, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andTotalDeathNotIn(List<Integer> values) {
            addCriterion("total_death not in", values, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andTotalDeathBetween(Integer value1, Integer value2) {
            addCriterion("total_death between", value1, value2, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andTotalDeathNotBetween(Integer value1, Integer value2) {
            addCriterion("total_death not between", value1, value2, "totalDeath");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisIsNull() {
            addCriterion("current_diagnosis is null");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisIsNotNull() {
            addCriterion("current_diagnosis is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisEqualTo(Integer value) {
            addCriterion("current_diagnosis =", value, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisNotEqualTo(Integer value) {
            addCriterion("current_diagnosis <>", value, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisGreaterThan(Integer value) {
            addCriterion("current_diagnosis >", value, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisGreaterThanOrEqualTo(Integer value) {
            addCriterion("current_diagnosis >=", value, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisLessThan(Integer value) {
            addCriterion("current_diagnosis <", value, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisLessThanOrEqualTo(Integer value) {
            addCriterion("current_diagnosis <=", value, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisIn(List<Integer> values) {
            addCriterion("current_diagnosis in", values, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisNotIn(List<Integer> values) {
            addCriterion("current_diagnosis not in", values, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisBetween(Integer value1, Integer value2) {
            addCriterion("current_diagnosis between", value1, value2, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andCurrentDiagnosisNotBetween(Integer value1, Integer value2) {
            addCriterion("current_diagnosis not between", value1, value2, "currentDiagnosis");
            return (Criteria) this;
        }

        public Criteria andByprovinceIsNull() {
            addCriterion("byprovince is null");
            return (Criteria) this;
        }

        public Criteria andByprovinceIsNotNull() {
            addCriterion("byprovince is not null");
            return (Criteria) this;
        }

        public Criteria andByprovinceEqualTo(String value) {
            addCriterion("byprovince =", value, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceNotEqualTo(String value) {
            addCriterion("byprovince <>", value, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceGreaterThan(String value) {
            addCriterion("byprovince >", value, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceGreaterThanOrEqualTo(String value) {
            addCriterion("byprovince >=", value, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceLessThan(String value) {
            addCriterion("byprovince <", value, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceLessThanOrEqualTo(String value) {
            addCriterion("byprovince <=", value, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceLike(String value) {
            addCriterion("byprovince like", value, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceNotLike(String value) {
            addCriterion("byprovince not like", value, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceIn(List<String> values) {
            addCriterion("byprovince in", values, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceNotIn(List<String> values) {
            addCriterion("byprovince not in", values, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceBetween(String value1, String value2) {
            addCriterion("byprovince between", value1, value2, "byprovince");
            return (Criteria) this;
        }

        public Criteria andByprovinceNotBetween(String value1, String value2) {
            addCriterion("byprovince not between", value1, value2, "byprovince");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}